<%--
  - Author		:	Jaewon Choi
  - Description	:	
  --%>
<%@ page language="java" %>
<%@ page contentType="text/html; charset=utf-8" %>
<%@ page pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/pages/includes/taglibs.jspf" %>
<%@ include file="/WEB-INF/pages/includes/variables.jspf" %>
<%@ include file="/WEB-INF/pages/includes/doctype.jspf" %>
<html>
	<head>
<%@ include file="/WEB-INF/pages/includes/metatags.jspf" %>
		<title><fmt:message key="pages.title" /></title>
		<link rel="stylesheet" type="text/css" href="<c:url value="${dirStyles}/common.css" />" />
		<link rel="stylesheet" type="text/css" href="<c:url value="${dirScripts}/jqueryUi/css/ui-lightness/jquery-ui-1.8.21.custom.css" />" />

		<script type="text/javascript" src="<c:url value="${dirScripts}/jquery-1.7.2.min.js" />"></script>
		<script type="text/javascript" src="<c:url value="${dirScripts}/jquery-ui-1.8.21.custom.min.js" />"></script>
		<script type="text/javascript">
			$(function(){
			});
		</script>
	</head>
	<body>
		<div class="bodyWrap">
<%@ include file="/WEB-INF/pages/includes/header.jsp" %>
<%@ include file="/WEB-INF/pages/includes/left.jsp" %>
			<div class="contWrap">
				<div class="menuTitle">
					브랜드 > 상세보기
				</div>
				<form id="frm" name="frm" method="post" action="<c:url value="/category/form.do" />">
					<input type="hidden" name="maxnum" value="${param.maxnum}" />
					<input type="hidden" name="page" value="${param.page}" />
					<input type="hidden" name="searchName" value="${param.searchName}">
					
					<table class="frmTbl">
						<colgroup>
							<col width="130px;" />
							<col width="*" />
						</colgroup>
						<tbody>
							<tr>
								<th>브랜드 IDX</th>
								<td>
									${category.idx}
									<input type="hidden" name="idx" value="${category.idx}">
								</td>
							</tr>							
							<tr>
								<th>브랜드명</th>
								<td>
									<c:out value="${category.name}" />
								</td>
							</tr>
							<tr>
								<th>브랜드 설명</th>
								<td>
									<c:out value="${category.desc1}" />
								</td>
							</tr>							
							<tr>
								<th>매거진 소개</th>
								<td>
									<textarea name="contDesc" style="border: none; height: 150px; width: 620px;" onfocus="javascript:this.blur();">${category.desc2}</textarea>
								</td>
							</tr>							 
							<tr>
								<th>이용방법 안내</th>
								<td>
									<img src="<c:out value="${category.logoUrl}" />" class="thumbnailImg" />
								</td>
							</tr>
							<tr>
								<th>iOS 앱버전*</th>
								<td>
									<c:out value="${category.iosAppVer}" />
								</td>
							</tr>
							<tr>
								<th>iOS 앱링크*</th>
								<td>
									<c:out value="${category.iosAppLink}" />
								</td>
							</tr>
							<tr>
								<th>Android 앱버전*</th>
								<td>
									<c:out value="${category.androidAppVer}" />
								</td>
							</tr>
							<tr>
								<th>Android 앱링크*</th>
								<td>
									<c:out value="${category.androidAppLink}" />
								</td>
							</tr>
						</tbody>
					</table>
					<input type="button" class="btn" value="목록" onclick="javascript:document.listFrm.submit();" />
					<c:if test="${category.idx ne 1}">
						<c:if test="${sessionScope.userRole eq 'ROLE_ADMIN'}">
							<input type="submit" class="btn" value="수정" />
						</c:if>
					</c:if>
				</form>
				<form name="listFrm" action="<c:url value="/category/list.do" />" method="post" style="display: none;">
					<input type="hidden" name="maxnum" value="${param.maxnum}" />
					<input type="hidden" name="page" value="${param.page}" />
					<input type="hidden" name="name" value="${param.searchName}" />
				</form>
			</div>
<%@ include file="/WEB-INF/pages/includes/footer.jsp" %>
		</div>
	</body>
</html> 